﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace YXShop.Web.admin.product
{
    public partial class onlinesignupinfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (ChangeHope.WebPage.PageRequest.GetQueryInt("id") > 0)
            {
                BindInfo(ChangeHope.WebPage.PageRequest.GetQueryString("id"));
            }
        }
        protected void BindInfo(string id)
        {
            YXShop.BLL.Product.GroupBuy_OnlineSignUpInfo bll = new YXShop.BLL.Product.GroupBuy_OnlineSignUpInfo();
            YXShop.Model.Product.GroupBuy_OnlineSignUpInfo model=bll.GetModelID(Convert.ToInt32(id));
            if (model != null)
            {
                this.lbName.Text = model.Name;
                string Sexs=string.Empty;
                if (model.Sex == 0)
                {
                    Sexs = "女";
                }
                else if (model.Sex == 1)
                {
                    Sexs="男";
                }
                else
                {
                    Sexs="保密";
                }
                this.lbSex.Text = Sexs;
                
                this.lbTel.Text = model.Tel;
                this.lbQQ.Text = model.QQ;
                this.lbCount.Text = model.SignUpCount.ToString();
                this.lbAddress.Text = model.Address;
                this.lbContent.Text = model.Content;
                this.returnLink.NavigateUrl = "onlinesignupinfo_list.aspx?w_d_sid=" + model.SID + "&q_productid="+model.SID;
            }
        }
    }
}
